// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import vuex from 'vuex'
import ElementUI from 'element-ui'
import store from '@/store/index';
import 'element-ui/lib/theme-chalk/index.css'
//引入Mockjs
require('./mock/index.js')
//引入axios
import axios from 'axios'
/*var ElTreeGrid = require('element-tree-grid');
Vue.component(ElTreeGrid.name,ElTreeGrid);
//import from source code . so you can build them with your webpack or rollup ..
import ElTableTreeColumn from  'element-tree-grid/src/index.js';*/
/*Vue.component(ElTreeGrid.name,ElTreeGrid)*/
Vue.config.productionTip = false
Vue.prototype.$ajax = axios
Vue.use(ElementUI)
Vue.use(router)
Vue.use(vuex)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
